package com.geccocrawler.gecco.demo.handan;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.JSONPath;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.annotation.RequestParameter;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.JsonBean;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: weixiaohu
 * Date: 2019/6/3
 * Time: 14:16
 */
@Getter
@Setter
@Gecco(
        matchUrl = "http://111.62.17.64:7000/ggfw/api/jcxx/fwzy/yyyd?akb021=&aae006=&aab034=&aka101=&pageNo={pageNo}&pageSize={pageSize}",
        pipelines = {"handanPipeline"})
public class Results implements JsonBean {
    @Request
    private HttpRequest request;
    @RequestParameter("pageNo")
    private int pageNo;
    @RequestParameter("pageSize")
    private int pageSize;
    @JSONPath("$.totalPages")
    private int totalPages;
    @JSONPath("$.content")
    private List list;
}
